package login;

import java.time.LocalTime;

public class Order {

    private String oId;
    private LocalTime oTime;
    private vegetableList dishes;
    private int oNumber;
    private Double discount;//优惠券
    private Double tolPrice;
    private customers ctm;
    private String status;
    private sellers slr;

    public Order(String oId,LocalTime oTime,vegetableList dishes, int oNumber, Double tolPrice, customers ctm, sellers slr,String status) {
        this.dishes = dishes;
        this.oNumber = oNumber;
        this.discount = discount;
        this.tolPrice = tolPrice;
        this.ctm = ctm;
        this.slr = slr;
    }


    @Override
    public String toString() {
        return "Order[ID="+oId+" 菜品:"+dishes.getDame()+" 数目："+oNumber+" 金额："+tolPrice+"用户："+ctm+"订单状态："+status+"下单时间："+oTime+"]";
    }

    public void setoTime(LocalTime oTime) {
        this.oTime = oTime;
    }
    public LocalTime getoTime() {
        return oTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    public Order() {
    }


    public String getoId() {
        return oId;
    }

    public void setoId(String oId) {
        this.oId = oId;
    }

    public vegetableList getDishes() {
        return dishes;
    }

    public void setDishes(vegetableList dishes) {
        this.dishes = dishes;
    }

    public int getoNumber() {
        return oNumber;
    }

    public void setoNumber(int oNumber) {
        this.oNumber = oNumber;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public Double getTolPrice() {
        return tolPrice;
    }

    public void setTolPrice(Double tolPrice) {
        this.tolPrice = tolPrice;
    }

    public customers getCtm() {
        return ctm;
    }

    public void setCtm(customers ctm) {
        this.ctm = ctm;
    }

    public sellers getSlr() {
        return slr;
    }

    public void setSlr(sellers slr) {
        this.slr = slr;
    }
}
